package com.yuhs.zixing.shop.web.businss.controller.user;

import com.yuhs.zixing.shop.dal.business.user.entity.UserInfoDO;
import com.yuhs.zixing.shop.service.businss.user.UserInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @ClassName UserPageController
 * @Description UserPageController
 * @Author yuhs
 * @CreateDate 2021/6/26
 **/
@Slf4j
@Controller
@RequestMapping("userPage")
public class UserPageController {
    @Resource
    UserInfoService userInfoService;
    /**
     * @return
     */
    @RequestMapping("/userRegister")
    public String userRegister() {
        log.info("用户注册");
        return "user/UserRegister.html";
    }

    @RequestMapping("/addUserInfo")
    public String addUserInfo(UserInfoDO userInfoDO) {
        log.info("添加用户");
        userInfoService.addUserInfo(userInfoDO);
        return "user/UserRegister.html";
    }
}
